<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">  
<title>编辑商品</title>
<link rel="stylesheet" type="text/css" href="/Public/css/Layout.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/Theme.css?v=<?=C("VERSION")?>">
<link rel="stylesheet" type="text/css" href="/Public/css/DefaultUI.css?v=<?=C("VERSION")?>">

<script type="text/javascript" src="/Public/js/JQuery.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/JQueryUI.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/SitemapHeader_INC.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/EditImportSheetSubmit_INC.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript" src="/Public/js/Fdata_INC.js?v=<?=C("VERSION")?>"></script>
<script type="text/javascript">
    var APP = "__APP__";
</script>

</head>
<body onload="" onresize="" onunload="">
<div id="Header" style="width: 1350px;"> 
<div class="Inner">    
<div class="Logo Right"></div>    
<div class="LabelButton Right" onclick="window.location.href = '__APP__/Login/logout'">退出</div>
<div class="LabelButton Right">帮助</div>
<div class="Label Right"><?=$_SESSION['UserName']?></div>
<a class="Application" href="__APP__">首页</a><div class="Label LabelNoPadding">&gt;</div><a class="Application" href="__APP__/ImportSheet/ViewParentsProduct">商品列表</a><div class="Label LabelNoPadding">&gt;</div><div class="Title">编辑商品</div>  </div></div>

<div id="Content" class="MenuColapsed" style="height: 568px; min-height: 568px; width: auto;">  
 
<div class="Inner">    
<table class="MainLayout" id="MainLayoutTable" cellspacing="0" cellpadding="0" border="0" style="height: 568px; min-height: 568px;">      
<tbody><tr>        
<td valign="top" id="MainLayout" class="MainLayoutCell" style="max-height: 100%;">
<table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
<thead class="MainLayoutHeader" id="MainLayoutHeader">
<tr>  
<td class="MainLayoutActions" style="height: 1px;">
<div class="ActionBigLabel">基本信息<b>(以下带标注*的信息均为必填信息，否则无法上传)</b></div>
</td>
</tr>
</thead>
</table>
<form name="SingleRecordForm" id="SingleRecordForm" action="__APP__/ImportSheet/ReEdit" method="POST"> 
<input id="ImportProductSheetID" name="ImportProductSheetID" type="hidden" value="<?=$ImportProductSheetList[0]['ID']?>">
<table name="XMLData" cellpadding="0" cellspacing="0">    
<tbody><tr>
<td>
<table class="Form" width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<th class="Parent" width="100%" colspan="5">商品类型(*)(请选择要上传的商品具体类型，一直选到不再出现下拉菜单)</th>

</tr>

<tr>
<td width="100%">
<?php if($ProductSubTypesList[0]['Code1'] != ""){?>
<?php MultipleSelectArr("ProductSubTypes", "ProductSubTypeID", "ProductSubType", "Code", $ProductSubTypesList[0]['Code1']); ?>
<?php }?>
</td>

<td width="100%">
<?php if($ProductSubTypesList[0]['Code2'] != ""){?>
<?php MultipleSelectArr("SecondProductSubTypes", "SecondProductSubTypeID", "SecondProductSubType", "Code", $ProductSubTypesList[0]['Code2']); ?>
<?php }?>
</td>

<td width="100%">
<?php if($ProductSubTypesList[0]['Code3'] != ""){?>
<?php MultipleSelectArr("ThirdProductSubTypes", "ThirdProductSubTypeID", "ThirdProductSubType", "Code", $ProductSubTypesList[0]['Code3']); ?>
<?php }?>
</td>

<td width="100%">
<?php if($ProductSubTypesList[0]['Code4'] != ""){?>
<?php MultipleSelectArr("FourthProductSubTypes", "FourthProductSubTypeID", "FourthProductSubType", "Code", $ProductSubTypesList[0]['Code4']); ?>
<?php }?>
</td>

<td width="100%">
<?php if($ProductSubTypesList[0]['Code5'] != ""){?>
<?php MultipleSelectArr("FifthProductSubTypes", "FifthProductSubTypeID", "FifthProductSubType", "Code", $ProductSubTypesList[0]['Code5']); ?>
<?php }?>
</td>
</tr>

<th class="Parent" width="100%" >英文品牌(*)</th>
<th class="Parent" width="100%" >中文品牌(*)</th>
<th class="Parent" width="100%" >制造商(*)</th>
<th class="Parent" width="100%">生产国(*)</th>
<th class="Parent" width="100%">鞋底材质(*)</th>
</tr>

<tr>
<td width="100%" ><input type="text" required="true" name="brand_name_en" id="brand_name_en" title="英文品牌" value="<?=$ImportProductSheetList[0]['brand_name_en']?>"/></td>
<td width="100%" ><input type="text" required="true" name="brand_name_zh" id="brand_name_zh" title="中文品牌" value="<?=$ImportProductSheetList[0]['brand_name_zh']?>" /></td>
<td width="100%" ><input type="text" required="true" name="manufacturer" id="manufacturer" title="制造商"  value="<?=$ImportProductSheetList[0]['manufacturer']?>"/></td>
<td width="100%">
<?php MultipleSelectArr("Countries", "country_of_origin", "Country", "", $ImportProductSheetList[0]['country_of_origin']); ?>
</td>
<td width="100%">
<?php MultipleSelectArr("SoleMaterials", "sole_material", "SoleMaterial", "", $ImportProductSheetList[0]['sole_material']); ?>
</td>
</tr>



<tr>
<th class="Parent" width="100%" colspan="2">商品名称(*)</th>
<th class="Parent" width="100%" colspan="3">（标注）</th>
</tr>

<tr>
<td width="100%" colspan="2"><input type="text" required="true" style="width:300px;" title="商品名称"  name="item_name" id="item_name" 
value="<?=$ImportProductSheetList[0]['item_name']?>" /></td>
<td width="100%"   colspan="3">（商品名称中不必填写品牌，如 空军一号复古板鞋airforce 1）</td>
</tr>


<tr>
<th class="Parent" width="100%" colspan="4" >商品尺码(*)(此处填写上传款式包含的尺码)</th>
<th class="Parent" width="100%" style="text-align: right;" ><img src="/Public/images/TreeButtonPlus.gif" id="CreatMoreProductSize" ProductSizeCurrentRow="1" onclick="CreatMoreProductSizeTr('CreatMoreProductSize')"/></th>
</tr>
 
<tr id="ProductSizeRow1">
<td width="100%" colspan="5">
<?php for($i = 0; $i < count($SizeNameList); $i++) {?>
<input style="width:60px; margin-right:0px !important;" ProductSize="<?=$SizeNameList[$i]['size_name']?>" readonly = "readonly" field="ProductSize"  name="ProductSize[]" type="text" id="ProductSize[]" value="<?=$SizeNameList[$i]['size_name']?>" /> 
<span id="<?=$SizeNameList[$i]['size_name']?>Icon" class="Icon Delete" style="align:center;vertical-align:middle; margin-right:10px !important;" onclick="DeleteProductSize(<?=$SizeNameList[$i]['size_name']?>)"></span >
<?php if($i%5 == 0 && $i != 0){?>
<div style="margin-top:5px"></div>
<?php }}?>

<tr id="CloneProductSizeRow" style="display:none">
<td width="100%" colspan="5">
<?php for($i = 0; $i < 6; $i ++) {?>
<input style="width:60px; margin-right:30px !important;"  field="ProductSize"  onchange="FData(this, 'Integer', 12, true);" field="ProductSize" name="ProductSize[]" type="text" id="ProductSize[]" /> 
<?php }?>
</td>
</tr>

<tr>
<th class="Parent" width="100%" colspan="2">商品颜色(*)(此处填写上传款式包含的颜色)</th>
<th class="Parent" width="100%" colspan="3" style="text-align: right;" >
<img src="/Public/images/TreeButtonPlus.gif"  ProductColorCurrentRow="1" id="CreatMoreProductColor" onclick="CreatMoreProductColorTr('CreatMoreProductColor');"/></th>
</tr>

<tr id="ProductColorRow1">
<td width="100%" colspan="5">
<?php for($i = 0; $i < count($ColorNameList); $i++) {?>
<input style="width:60px; margin-right:0px !important;" ProductColor="<?=$ColorNameList[$i]['color_name']?>" field="ProductColor" name="ProductColor[]" type="text" id="ProductColor[]" readonly = "readonly" 
value ="<?=$ColorNameList[$i]['color_name']?>"/> 
<span id="<?=$ColorNameList[$i]['color_name']?>Icon"  onclick="DeleteProductColor('<?=$ColorNameList[$i]['color_name']?>')"  class="Icon Delete" style="align:center;vertical-align:middle; margin-right:10px !important;"></span >
<?php if($i%5 == 0 && $i != 0){?>
<div style="margin-top:5px"></div>
<?php }}?>
</td>
</tr>

<tr id="CloneProductColorRow" style="display:none">
<td width="100%" colspan="5">
<?php for($i = 0; $i < 6; $i ++) {?>
<input style="width:60px; margin-right:30px !important;"   field="ProductColor"  name="ProductColor[]" type="text" id="ProductColor[]" /> 
<?php }?>
</td>
</tr>
</tbody>
</table>     
</td>    
</tr>  
</tbody>
</table> 
<br />

<div class="Pagination">
<div class="ActionButtonContainer" title="确定">
<a id="ActionButtonSaveChanges" class="ActionButton ActionButtonAttention" onClick="Formsubmit(document.SingleRecordForm);">
<div class="Title">确定</div>  
</a>
</div>  
</div>

</form>        
</td>     
</tr>    
</tbody>
</table>  
</div>
</div>

<script type="text/javascript"> 
SetLayoutHeight();   
</script>

</body></html>